package com.moarea.app.service.inter.login;

import com.moarea.app.lang.model.ResultObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * 首页信息获取控制
 * <p>
 * jizhong
 * <p>
 * 2017-10-26
 */
public interface IIndexService {

    /**
     * 获取当前登录用户的信息
     *
     * @param session HttpSession
     * @return ResultObject
     */
    ResultObject obtainLoginUser(HttpSession session);


    /**
     * 用户权限内菜单获取
     *
     * @param param    前端登录参数
     * @param request  HttpServletRequest
     * @param response HttpServletResponse
     * @param session  HttpSession
     * @return 登录结果
     */
    ResultObject obtainUserMenus(Map<String, Object> param, HttpServletRequest request, HttpServletResponse response, HttpSession session);


}
